home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / sbprolog / v3 / sim.lha / sim / Makefile < prev    next >
Makefile  |  1990-09-11  |  3KB  |  69 lines

  1. # /**********************************************************************
  2. # *                                    *
  3. # * The SB-Prolog System                        *
  4. # * Copyright SUNY at Stony Brook, 1986; University of Arizona, 1987    *
  5. # *                                    *
  6. # ***********************************************************************/
  7. # /*-----------------------------------------------------------------
  8. # SB-Prolog is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY.  No author or distributor
  10. # accepts responsibility to anyone for the consequences of using it
  11. # or for whether it serves any particular purpose or works at all,
  12. # unless he says so in writing.  Refer to the SB-Prolog General Public
  13. # License for full details.
  14. # Everyone is granted permission to copy, modify and redistribute
  15. # SB-Prolog, but only under the conditions described in the
  16. # SB-Prolog General Public License.   A copy of this license is
  17. # supposed to have been given to you along with SB-Prolog so you
  18. # can know your rights and responsibilities.  It should be in a
  19. # file named COPYING.  Among other things, the copyright notice
  20. # and this notice must be preserved on all copies. 
  21. # ------------------------------------------------------------------ */
  22. CFLAGS = -c -O
  23. #CC     = /usr/local/gcc
  24. CC     = cc
  25. OBJ1   = aux.o dis.o dispatch.o evalexp.o float.o init.o io.o load_work.o 
  26. OBJ2   = loader.o main.o parse_oprnd.o print_inst.o sub_inst.o unify.o gc.o
  27. OBJS   = $(OBJ1) $(OBJ2)
  28.  
  29. sbprolog : $(OBJS) builtin/builtin
  30.     $(CC) -o sbprolog $(OBJS) builtin/builtin
  31. clean :
  32.     rm $(OBJS)
  33. aux.o   : aux.c sim.h
  34.     $(CC) $(CFLAGS) aux.c 
  35. dis.o   : dis.c aux.h inst.h sim.h 
  36.     $(CC) $(CFLAGS) dis.c 
  37. dispatch.o : dispatch.c inst.h
  38.     $(CC) $(CFLAGS) dispatch.c 
  39. evalexp.o : evalexp.c aux.h sim.h
  40.     $(CC) $(CFLAGS) evalexp.c 
  41. float.o : float.c aux.h sim.h
  42.     $(CC) $(CFLAGS) float.c
  43. init.o  : init.c aux.h inst.h sim.h
  44.     $(CC) $(CFLAGS) init.c
  45. io.o    : io.c aux.h sim.h 
  46.     $(CC) $(CFLAGS) io.c 
  47. load_work.o : load_work.c aux.h sim.h
  48.     $(CC) $(CFLAGS) load_work.c 
  49. loader.o : loader.c aux.h sim.h inst.h 
  50.     $(CC) $(CFLAGS) loader.c 
  51. main.o  : main.c aux.h inst.h simdef.h sim.h
  52.     $(CC) $(CFLAGS) main.c
  53. parse_oprnd.o : parse_oprnd.c inst.h sim.h
  54.     $(CC) $(CFLAGS) parse_oprnd.c 
  55. print_inst.o : print_inst.c inst.h sim.h
  56.     $(CC) $(CFLAGS) print_inst.c 
  57. sub_inst.o : sub_inst.c aux.h sim.h 
  58.     $(CC) $(CFLAGS) sub_inst.c 
  59. unify.o : unify.c aux.h sim.h
  60.     $(CC) $(CFLAGS) unify.c 
  61. gc.o    : gc.c aux.h simdef.h sim.h
  62.     $(CC) $(CFLAGS) gc.c 
  63.  
  64. builtin/builtin : aux.h sim.h
  65.     cd builtin;    make
  66.